package com.daiyang.campus_lucky_draw.service;

import com.daiyang.campus_lucky_draw.contreller.param.CreateActivityParam;
import com.daiyang.campus_lucky_draw.contreller.param.PageListParam;
import com.daiyang.campus_lucky_draw.service.dto.ActivityDTO;
import com.daiyang.campus_lucky_draw.service.dto.ActivityDetailDTO;
import com.daiyang.campus_lucky_draw.service.dto.CreateActivityDTO;
import com.daiyang.campus_lucky_draw.service.dto.PageListDTO;

public interface ActivityService {
    /**
     * 创建活动
     *
     * @param request
     * @return
     */
    CreateActivityDTO createActivity(CreateActivityParam request);
    /**
     * 翻⻚查询活动列表
     *
     * @param request
     * @return
     */
    PageListDTO<ActivityDTO> findActivityList(PageListParam request);

    /**
     * 获取单个活动以及关联的奖品信息
     *
     * @param activityId
     * @return
     */
    ActivityDetailDTO getActivityDetail(Long activityId);

    /**
     * 缓存活动状态信息(先读取表数据再缓存)
     * @param activityId
     */
    void  cacheActivity(Long activityId);
}
